# * @Copyright (c) 2021 Zero_One NUAA
# *
# * @author         : He Kunling
# * @createDate     : 2021/07/31
# * @lastEditors    :
# * @lastEditTime   : 2021/07/31
# * @brief          : 

cmake_minimum_required(VERSION 2.8)
project(onboard_project)
find_package(lcm REQUIRED)
set(LIBRARIES "${CMAKE_CURRENT_SOURCE_DIR}/../Lib")
set(USER_INC  "${CMAKE_CURRENT_SOURCE_DIR}/Inc")
set(USER_SRC  "${CMAKE_CURRENT_SOURCE_DIR}/Src")
set(LCM_INC "${CMAKE_CURRENT_SOURCE_DIR}/../Lib/lcm_type")
set(LIB_CAMERA   "${LIBRARIES}/Camera")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -g -O0")

include_directories(${USER_INC} ${LCM_INC})

aux_source_directory(${USER_SRC} USER_SOURCES)

link_directories(${LIB_CAMERA})

add_executable(${PROJECT_NAME} ${OSDK_COM_SOURCES} ${USER_SOURCES})

target_link_libraries(${PROJECT_NAME} lcm)

